import Vue from 'vue'
export function loadOpen (time = 0) {
  setTimeout(() => {
    var loading = Vue.prototype.$loading({
      background: 'hsla(0,0%,93%,0.4)'
    })
    return loading
  }, time)
}

export function loadClose(timer) {
  Vue.prototype.$loading.close()
  clearTimeout(timer)
}
